Skip to content

Conversation

@aroradaman
Copy link
Member

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

With kubernetes/kubernetes#126847 kube-proxy will no longer depend on conntrack binary to be present on the image, this PR removes the conntrack binary from the distroless-iptables image.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

The distroless iptables binary will no longer have conntrack binary

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. needs-priority labels Jan 2, 2026
@k8s-ci-robot k8s-ci-robot added area/release-eng Issues or PRs related to the Release Engineering subproject sig/release Categorizes an issue or PR as relevant to SIG Release. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 2, 2026
@aroradaman
Copy link
Member Author

Following up from #3726,
I think it is safe to remove the dependency now, from k/k 1.32 we no longer depend on the conntrack binary.

/cc @aojea @danwinship @BenTheElder

Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

/hold for @BenTheElder to comment

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 2, 2026
@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 2, 2026
mkdir -p "${STAGE_DIR}" && \
/stage-binaries-from-package.sh "${STAGE_DIR}" conntrack \
ebtables \
/stage-binaries-from-package.sh "${STAGE_DIR}" ebtables \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now that I see this, I think ebtables was only required for some dockershim kubelet stuff, @danwinship to keep me honest

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, kubernetes/kubernetes#28717. Definitely not needed any more.

Copy link
Member

@aojea aojea Jan 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aroradaman can you please remove the ebtables, that is not likely going to be used anywhere , howeve, regarding the conntrack binary this image is used in another projects too https://grep.app/search?q=distroless-iptables ... I'm unclear on what contract do we have with this image or what are the expectactions

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README says "Serves as the base image for registry.k8s.io/kube-proxy-${ARCH}." I don't think we ever implied that we supported random projects using it as a base image.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, as a maintainer of one of those images, if we needed something missing from this image that would be our problem.

In upstream, kubernetes/dns probably isn't using conntrack, and kindnetd just needs ... iptables.

The rest of these appear to be references to Kubernetes/Kubernetes releases and this image itself (e.g. the build job)

https://cs.k8s.io/?q=distroless-iptables&i=nope&literal=nope&files=&excludeFiles=&repos=

Copy link
Member

@BenTheElder BenTheElder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aroradaman, BenTheElder, cpanato

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 6, 2026
@BenTheElder
Copy link
Member

needs a rebase after the ebtables cleanup

Signed-off-by: Daman Arora <aroradaman@gmail.com>
@aroradaman aroradaman force-pushed the distroless-iptables-remove-conntrack branch from a9a97a0 to 76e09ce Compare January 6, 2026 19:52
@k8s-ci-robot k8s-ci-robot removed lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jan 6, 2026
@aroradaman aroradaman requested a review from BenTheElder January 6, 2026 19:52
Copy link
Member

@BenTheElder BenTheElder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 6, 2026
@aojea
Copy link
Member

aojea commented Jan 6, 2026

LGTM

@aroradaman
Copy link
Member Author

/hold cancel
(Open thread is concluded).

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 7, 2026
@k8s-ci-robot k8s-ci-robot merged commit 911c3be into kubernetes:master Jan 7, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/release-eng Issues or PRs related to the Release Engineering subproject cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/release Categorizes an issue or PR as relevant to SIG Release. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants